home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 140
/
(Vol 140) Sep 19 2011.iso
/
Games
/
red_cross_eru.swf
/
scripts
/
__Packages
/
gamebase
/
MapCell.as
< prev
next >
Wrap
Text File
|
2011-09-19
|
8KB
|
209 lines
§§push(true);
§§push(false);
§§push(false);
§§push(true);
while(true)
{
if(§§pop())
{
}
if(§§pop())
{
}
if(§§pop())
{
break;
}
§§push(true);
§§push(false);
}
if(!e.f)
{
e.f = new g();
}
§§pop();
if(!e.f.h)
{
f.h extends f[§§constant(7)];
var _loc2_ = f.h = function(cId, rId)
{
super();
this[§§constant(4)] = cId;
this[§§constant(5)] = rId;
this[§§constant(6)]();
}[§§constant(8)];
_loc2_[§§constant(6)] = function()
{
this[§§constant(9)] = _global[§§constant(10)][§§constant(11)];
this[§§constant(12)] = _global[§§constant(10)][§§constant(13)];
this[§§constant(14)] = this[§§constant(4)] + §§constant(15) + this[§§constant(5)];
this[§§constant(16)] = (this[§§constant(4)] - 1) * this[§§constant(9)];
this[§§constant(17)] = this[§§constant(4)] * this[§§constant(9)];
this[§§constant(18)] = (this[§§constant(5)] - 1) * this[§§constant(12)];
this[§§constant(19)] = this[§§constant(5)] * this[§§constant(12)];
this[§§constant(20)] = this[§§constant(16)] + this[§§constant(9)] / 2;
this[§§constant(21)] = this[§§constant(18)] + this[§§constant(12)] / 2;
this[§§constant(22)] = new §\§\§constant(23)§();
this[§§constant(24)] = new §\§\§constant(23)§();
};
_loc2_[§§constant(25)] = function()
{
this[§§constant(26)] = [];
this[§§constant(26)][1] = !(this[§§constant(4)] > 1 && this[§§constant(5)] > 1) ? undefined : _global[§§constant(10)][§§constant(27)](this[§§constant(4)] - 1 + §§constant(15) + (this[§§constant(5)] - 1));
this[§§constant(26)][2] = this[§§constant(5)] <= 1 ? undefined : _global[§§constant(10)][§§constant(27)](this[§§constant(4)] + §§constant(15) + (this[§§constant(5)] - 1));
this[§§constant(26)][3] = !(this[§§constant(4)] < _global[§§constant(10)][§§constant(28)] && this[§§constant(5)] > 1) ? undefined : _global[§§constant(10)][§§constant(27)](this[§§constant(4)] + 1 + §§constant(15) + (this[§§constant(5)] - 1));
this[§§constant(26)][4] = this[§§constant(4)] <= 1 ? undefined : _global[§§constant(10)][§§constant(27)](this[§§constant(4)] - 1 + §§constant(15) + this[§§constant(5)]);
this[§§constant(26)][5] = this[§§constant(4)] >= _global[§§constant(10)][§§constant(28)] ? undefined : _global[§§constant(10)][§§constant(27)](this[§§constant(4)] + 1 + §§constant(15) + this[§§constant(5)]);
this[§§constant(26)][6] = !(this[§§constant(4)] > 1 && this[§§constant(5)] < _global[§§constant(10)][§§constant(29)]) ? undefined : _global[§§constant(10)][§§constant(27)](this[§§constant(4)] - 1 + §§constant(15) + (this[§§constant(5)] + 1));
this[§§constant(26)][7] = this[§§constant(5)] >= _global[§§constant(10)][§§constant(29)] ? undefined : _global[§§constant(10)][§§constant(27)](this[§§constant(4)] + §§constant(15) + (this[§§constant(5)] + 1));
this[§§constant(26)][8] = !(this[§§constant(4)] < _global[§§constant(10)][§§constant(28)] && this[§§constant(5)] < _global[§§constant(10)][§§constant(29)]) ? undefined : _global[§§constant(10)][§§constant(27)](this[§§constant(4)] + 1 + §§constant(15) + (this[§§constant(5)] + 1));
};
_loc2_[§§constant(30)] = function(px, py)
{
var _loc4_ = _global[§§constant(10)][§§constant(31)](px,py);
if(_loc4_ == this[§§constant(14)])
{
return true;
}
var _loc3_ = 1;
while(_loc3_ <= 8)
{
if(this[§§constant(26)][_loc3_][§§constant(14)] == _loc4_)
{
return true;
}
_loc3_ = _loc3_ + 1;
}
return false;
};
_loc2_[§§constant(32)] = function(p)
{
var _loc3_ = this[§§constant(24)][§§constant(33)];
var _loc2_ = 0;
while(_loc2_ < _loc3_)
{
if(this[§§constant(24)][_loc2_] == p)
{
return undefined;
}
_loc2_ = _loc2_ + 1;
}
this[§§constant(24)][§§constant(34)](p);
};
_loc2_[§§constant(35)] = function()
{
var _loc3_ = this[§§constant(24)][§§constant(36)]();
var _loc2_ = 1;
while(_loc2_ <= 8)
{
_loc3_ = _loc3_[§§constant(37)](this[§§constant(26)][_loc2_][§§constant(24)]);
_loc2_ = _loc2_ + 1;
}
return _loc3_;
};
_loc2_[§§constant(38)] = function(obj, includeNeighbours)
{
if(!this[§§constant(39)](obj))
{
this[§§constant(22)][§§constant(34)](obj[§§constant(40)]);
if(includeNeighbours)
{
var _loc3_ = this[§§constant(41)](obj);
var _loc2_ = 0;
while(_loc2_ < _loc3_[§§constant(33)])
{
_loc3_[_loc2_][§§constant(38)](obj);
_loc2_ = _loc2_ + 1;
}
}
}
};
_loc2_[§§constant(41)] = function(obj)
{
var _loc2_ = new §\§\§constant(23)§();
var _loc7_ = obj[§§constant(20)] - obj[§§constant(42)] < this[§§constant(16)];
var _loc6_ = obj[§§constant(20)] + obj[§§constant(42)] > this[§§constant(17)];
var _loc4_ = obj[§§constant(21)] - obj[§§constant(42)] < this[§§constant(18)];
var _loc5_ = obj[§§constant(21)] + obj[§§constant(42)] > this[§§constant(19)];
if(_loc7_)
{
_loc2_[§§constant(34)](this[§§constant(26)][4]);
if(_loc4_)
{
_loc2_[§§constant(34)](this[§§constant(26)][1]);
}
if(_loc5_)
{
_loc2_[§§constant(34)](this[§§constant(26)][6]);
}
}
if(_loc6_)
{
_loc2_[§§constant(34)](this[§§constant(26)][5]);
if(_loc4_)
{
_loc2_[§§constant(34)](this[§§constant(26)][3]);
}
if(_loc5_)
{
_loc2_[§§constant(34)](this[§§constant(26)][8]);
}
}
if(_loc4_)
{
_loc2_[§§constant(34)](this[§§constant(26)][2]);
}
if(_loc5_)
{
_loc2_[§§constant(34)](this[§§constant(26)][7]);
}
return _loc2_;
};
_loc2_[§§constant(43)] = function(obj)
{
var _loc3_ = this[§§constant(22)][§§constant(33)];
var _loc2_ = 0;
while(_loc2_ < _loc3_)
{
if(this[§§constant(22)][_loc2_] == obj[§§constant(40)])
{
this[§§constant(22)][§§constant(44)](_loc2_,1);
break;
}
_loc2_ = _loc2_ + 1;
}
};
_loc2_[§§constant(39)] = function(obj)
{
var _loc3_ = this[§§constant(22)][§§constant(33)];
var _loc2_ = 0;
while(_loc2_ < _loc3_)
{
if(this[§§constant(22)][_loc2_] == obj[§§constant(40)])
{
return true;
}
_loc2_ = _loc2_ + 1;
}
return false;
};
_loc2_[§§constant(45)] = function(objectType)
{
var _loc5_ = new §\§\§constant(23)§();
var _loc6_ = this[§§constant(22)][§§constant(33)];
var _loc3_ = 0;
while(_loc3_ < _loc6_)
{
var _loc4_ = _global[§§constant(46)][§§constant(47) + this[§§constant(22)][_loc3_]];
if(_loc4_ instanceof objectType)
{
_loc5_[§§constant(34)](_loc4_);
}
_loc3_ = _loc3_ + 1;
}
return _loc5_;
};
§§push(§§constant(48)(f.h[§§constant(8)],null,1));
}
§§pop();